package top.wshape1.shiziapi.uaa.domain.vo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2023-09-02
 */

@Data
public class InfoVo {

    @NotBlank
    @Pattern(regexp = "^[\\u4e00-\\u9fa5_a-zA-Z0-9-]+$", message = "名称异常，不能包含除_-以外的字符！")
    @Length(max = 64)
    private String nickname;

    @Pattern(regexp = "(^1[3-9]\\d{9}$)?", message = "电话号码异常")
    private String phone;

}
